<?php
	header("Content-Type: text/html;charset=utf-8");
	include("function/_nosql.php"); //
	include("function/function.php");
	include("_include.user.judge.php");
	$kboy_userid = $_SESSION['kboy_userid'];
	$kboy_user = $_SESSION['kboy_user'];
	$uid = chkstr(trim($_REQUEST['uid']));
	if(empty($uid)){
		echo erro("参数错误");
	}
	if(!is_numeric($uid)){
		echo erro("参数错误");
	}
	if(getNewsNums("kboy_user","uid=$uid") <1){
		echo erro("参数错误");
	}
	if($kboy_userid != $uid){
		echo erro("您无权登录此页");
	}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>我的相册_社区_<?= $web_titles ?></title>
<meta name="Keywords" content="我的相册,社区,<?= $web_keywords ?>" />
<meta name="Description" content="<?= $web_description ?>" />
<link rel="stylesheet" href="css/common.css"/>
<link rel="stylesheet" href="css/sq.css"/>
<script type="text/javascript" src="js/baidutongji.js"></script>
<script type="text/javascript" src="js/laydate/laydate.js"></script>
</head>
<body>
    <!--top-bar begin-->
	<? include("_include.top.topbar.php") ?>
    <!--top-bar end-->
    <!--header begin-->
	<? include("_include.top.navbar.php") ?>
    <!--header end-->
    <!--banner begin-->
	<? include("_include.forum.banners.php") ?>
    <!--banner end-->
    <!--活动 begin-->
    <div class="sq-wrap">
		<? include("_include.forum.title.php") ?>
        <div class="sq-bd">
			<? include("_include.forum.topnav.php") ?>
        <div class="sq-bd-con">
            <div class="sq-bd-l">
                <div class="sq-photo-wrap">
                    <div class="Record_main_p">
                        <div class="Seconavi">
                            <a href="forum_photo.php?uid=<?=$uid?>">返回我的相册</a>
                        </div>
                        <div class="album-create">
							<form name="albumform" id="albumform" method="post" action="forum_photo_albumaddsave.php?action=add">
                            <table class="mainTable">
                                <tbody>
                                <tr>
                                    <th><span class="red">*</span>相册名</th>
                                    <td>
                                        <input type="text" name="album_title" id="album_title" value="" >
                                    </td>
                                </tr>
                                <tr>
                                    <th><span class="red">*</span>拍摄时间</th>
                                    <td>
										<input type="text" onclick="laydate()" style="width:300px;" readonly="" name="album_shoottime" id="album_shoottime" value="" />
                                    </td>
                                </tr>
                                <tr>
                                    <th>相册描述</th>
                                    <td><textarea name="album_text" id="album_text"></textarea></td>
                                </tr>
                                <tr>
                                    <th></th>
                                    <td class="fl-act">
										<input type="submit" name="send_btn" class="send_btn" value="创建相册" />
                                    </td>
                                </tr>
                                </tbody>
                            </table>
							</form>
                        </div>
                    </div>
                </div>
            </div>
			
			
				<? include("_include.forum.right.php") ?>
				
				
        </div>
    </div>
</div>
    <!--foot begin-->
	<? include("_include.bottom.footbar.php") ?>
    <!--foot begin-->
    <!--左侧悬浮 begin-->
	<? include("_include.bottom.leftbar.php") ?>
    <!--左侧悬浮 end-->
    <!--右侧悬浮导航 begin-->
	<? include("_include.bottom.rightbar.php") ?>
    <!--右侧悬浮导航 end-->
<script type="text/javascript" src="js/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="js/jquery.SuperSlide.2.1.1.js"></script>
<script type="text/javascript" src="js/main.js"></script>
<script type="text/javascript" src="js/sq.js"></script>
<script language="javascript">
	$(document).ready(function(){
		$("#albumform").submit(function(){
			var album_title = $("#album_title").val();
			var album_shoottime = $("#album_shoottime").val();
	
			if (album_title.replace(/\ /g,"").length<1){
				alert("相册标题不能为空！");
				$("#album_title").focus();
				return false;
			}
			if (album_shoottime.replace(/\ /g,"").length<1){
				alert("拍摄之间不能为空！");
				$("#album_shoottime").focus();
				return false;
			}
		});
	});
</script>
</body>
</html>
